<script setup>
import App2 from './App2.vue';
import { inject } from 'vue';
const value = inject('theme');
</script>

<template>
  <div style="border: 1px solid red; margin: 16px">
    <h2>App1组件 {{ value }}</h2>
    <App2></App2>
  </div>
</template>
